package cn.geminis.crypto.service.config;

import cn.geminis.crypto.csp.AbstractCspFactory;
import cn.geminis.crypto.csp.soft.empty.EmptyCspFactory;
import cn.geminis.crypto.csp.soft.gm.Sm2CspFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CspConfig {

    @Bean
    public AbstractCspFactory getCspFactory() {
//        return new Sm2CspFactory("./keys/sm2/", "11111111");
        return new EmptyCspFactory("./keys/empty/");
    }

}
